#ifndef SessionManager_I_H
#define SessionManager_I_H

#include <Ice/Ice.h>
#include <Glacier2/Glacier2.h>
#include <Yafridng.h>

using namespace std;
using namespace Yafridng;

class SessionManagerI : public Glacier2::SSLSessionManager, IceUtil::Mutex
{
 public:
  SessionManagerI(const Glacier2::SSLSessionManagerPrx&);
  ~SessionManagerI();

  virtual Glacier2::SessionPrx create(const Glacier2::SSLInfo&,
				      const Glacier2::SessionControlPrx&,
				      const Ice::Current&);

 private:
  const Glacier2::SSLSessionManagerPrx _manager;
  vector<Glacier2::SessionPrx> _sessions;
};

#endif
